{block content}
  <h1>Přidat video</h1>
  {form addVideoForm class=>form-horizontal}
    <div class="form-group">
      <ul class="errors col-xs-4 col-xs-offset-4" n:if="$form->hasErrors()">
        <li n:foreach="$form->errors as $error" class="alert alert-danger alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          <strong>{$error}</strong>
        </li>
      </ul>
    </div>
          <div class="form-group">
    {label code class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input code class=>form-control}
    </div>
  </div>
  <div class="form-group">
    {label title class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input title class=>form-control}
    </div>
  </div>
  <div class="form-group">
    {label category class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input category class=>form-control}
    </div>
  </div>
  <div class="form-group">
    {label link class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input link class=>form-control}
    </div>
  </div>
    
  <div class="form-group">
    {label description class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input description class=>form-control}
    </div>
  </div>
    
  <div class="form-group">
    {label requirements class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input requirements class=>form-control}
    </div>
  </div>
  <div class="form-group">
    {label duration class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input duration class=>form-control}
    </div>
  </div>
    
  <div class="form-group">
    {label keyword class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input keyword class=>form-control}
    </div>
  </div>
    
  <div class="form-group">
    {label learn class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input learn class=>form-control}
    </div>
  </div>
  <div class="form-group">
    {label style class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input style class=>form-control}
    </div>
  </div>
  <div class="form-group">
    {label level class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input level class=>form-control}
    </div>
  </div>
  <div class="form-group">
    {label webdesc class=>array(control-label, col-xs-4)/}
    <div class="col-xs-4">
      {input webdesc class=>form-control}
    </div>
  </div>
 <div class="form-group">
    <div class="col-xs-4 col-xs-offset-4">
      {input send class=>array(btn, btn-success, btn-md)}
      &nbsp;
      <a n:href="Video:default" class="btn btn-danger btn-md">Zrušit</a>
    </div>
  </div>
  {/form}
{/block}